package com.agen.basenet.util

import com.google.gson.Gson
import okhttp3.MediaType
import okhttp3.RequestBody

object NetUtil {
    fun getJsonRequestBody(any: Any): RequestBody {
        return RequestBody.create(
            MediaType.parse("application/json; charset=utf-8"),
            Gson().toJson(any)
        )
    }
}